package com.sword.erp.stock.service;

import com.sword.erp.stock.model.Stock;

import java.util.List;

/**
 * 库存服务
 * @author sword
 * @date 2021/10/30 16:22
 */
public interface StockService {
    /**
     * 减少库存
     * @return Long 剩余库存数量
     * @author sword
     * @date 2021/10/30 16:23
     */
    Long reduceStock();

    Stock testJavaBeanToRedis();

    Stock testJavaBeanToRedisByKey(String key);

    List<Stock> testJavaBeanListToRedis();
}
